﻿// 1、树状结构的样式
.main_tree {
  width: 100%;
  max-height: calc(100% - 90px);
  overflow-y: auto;
  &::-webkit-scrollbar{
    width: 6px;
    height: 8px;
    cursor: pointer;
  }
  &::-webkit-scrollbar-track{
    background: rgba(21,130,178,.5);
    border-radius: 2px;
  }
  &::-webkit-scrollbar-thumb{
    background: rgba(21,130,178,1);
    border-radius: 6px;
  }
  &::-webkit-scrollbar-thumb:hover {
    background: $theme_main_hover_color;
  }
  &>.el-tree {
    color: $theme_font_color;
    background: transparent;
    &>.el-tree-node {
      // 二级节点
      &>.el-tree-node__children {
        width: 100%;
        .el-tree-node {
          width: 100%;
          .el-tree-node__content {
            height: 30px;
            margin-top: 6px;
            &:hover {
              background-color: transparent;
            }
            // 内容部分
            .page_secondLevel {
              // 鼠标移入时的样式
              &:hover {
                background-color: transparent;
                color: $theme_tree_bg_active_color;
              }
              display: block;
              width: 100%;
              font-size: 14px;
              height: 30px;
              line-height: 30px;
              padding: 0 10px;
              // 左侧的文字
              .page_treeLabel {
                display: block;
                margin-right: 85px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
              // 右侧的按钮
              .page_treeBtns {
                float: right;
                height: 30px;
                line-height: 30px;
                .el-button--mini {
                  padding: 0;
                  border: none;
                  .iconfont {
                    margin: 0;
                    font-size: 18px;
                  }
                }
                .el-button+.el-button {
                  margin-left: 5px;
                }
              }
            }
          }
        }
        // 二级节点选中的样式
        .el-tree-node.is-checked {
          .el-tree-node__content {
              background: transparent;
            .page_secondLevel {
              background-color: transparent;
              color: $theme_tree_bg_active_color;
            }
          }
        }
      }
      // 一级节点的样式
      &>.el-tree-node__content {
        height: 40px;
        background-color: $theme_tree_bg_color;
        font-size: 14px;
        font-weight: 600;
        margin-top: 10px;
      }
    }
    // 当前选中的一级节点或者打开的一级节点
    &>.is-current,
    &>.is-expanded{
      &>.el-tree-node__content {
        background-color: transparent;
        color: $theme_tree_bg_active_color;
        &>.el-tree-node__expand-icon {
          color: #fff;
        }
      }
    }
  }
  .el-checkbox {
    display: none;
  }
  .el-tree-node__children .el-tree-node__expand-icon {
    display: none;
  }
  .el-tree-node__expand-icon {
    font-size: 16px;
    color: $theme_font_color;
  }
}
.main_tree_min {
  max-height: calc(100% - 118px);
}
// 2、下拉菜单
.slef_dropDown {
  margin-left: 10px;
}
.dropdownMenu{
  li{
    line-height: 40px;
    padding: 0 20px;
    font-size: 16px;
    color: $theme_font_color;
    i{
      font-size: 20px;
      margin-right: 3px;
      vertical-align: -1px;
    }
  }
  li:hover{
    color: #fff;
  }
}